package com.nxj.sqlSession;

import com.nxj.config.XMLConfigBuilder;

import java.io.InputStream;

public class SqlSessionFactoryBuilder {

    public SqlSessionFactory build(InputStream inputStream) throws Exception {
        return new DefaultSqlSessionFactory(new XMLConfigBuilder().parseConfig(inputStream));
    }

}
